create index ix_WaitStateHistory_1  on WaitStateHistory (DatabaseID)
create index ix_WaitStateHistory_2  on WaitStateHistory (SessionID)
create index ix_WaitStateHistory_3  on WaitStateHistory (Wait_Type)
create index ix_WaitStateHistory_4  on WaitStateHistory (DatabaseID, Wait_Type)